import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/table/list',
    method: 'get',
    params
  })
}

export function deleteFile(name) {
  return request({
    url: '/delete_data',
    method: 'get',
    params:{file_name:name}
  })
}

export function getUserList(token) {
  return request({
    url: '/all_user',
    method: 'get',
    params:{token:token}
  })
}

export function userEnableChange(token, userName, userStatu) {
  return request({
    url: '/user_enable',
    method: 'get',
    params:{token:token, user_name:userName, enable_statu:userStatu}
  })
}

export function userDelete(token, userName) {
  return request({
    url: '/user_delete',
    method: 'get',
    params:{token:token, user_name:userName}
  })
}